﻿namespace AiFrame.InterfaceLib.Licenses
{ 
    /// <summary>
    /// Specifies a license object.
    /// </summary>
    public class License
    {
        /// <summary>
        /// Gets or sets the license type
        /// </summary>
        public LicenseType LicenseType { get; set; }

        /// <summary>
        /// Gets or sets the username specified by 
        /// the license type.
        /// </summary>
        public string UserName { get; set; }

        /// <summary>
        /// Gets or sets the password specified by the
        /// license type.
        /// </summary>
        public string Password { get; set; }

        /// <summary>
        /// Gets or sets the server address specified
        /// by the license type.
        /// </summary>
        public string ServerAddress { get; set; }

        /// <summary>
        /// Gets or sets the database name specified by
        /// the license type.
        /// </summary>
        public string DatabaseName { get; set; }
    }

    public enum LicenseType
    {
        /// <summary>
        /// A trial version.
        /// </summary>
        Trial,

        /// <summary>
        /// A fuill usable version.
        /// </summary>
        Full
    }
}
